Conversation
Simplifies checkout action flow by replacing onSuccessAction with a direct action parameter, consolidating all checkout operations into a single action field. Updates type definitions and interfaces to support the new unified action approach.
…t methods response
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement, Bug fix
Description
Added support for shipping rates and payment methods in checkout.
Refactored checkout submission to simplify action handling.
onSuccessActionwith a unifiedactionparameter.Enhanced cart normalization with additional fields.
Fixed issues with shipping rates array concatenation.
Changes walkthrough 📝
12 files
Added shipping rates and payment methods to checkout handlerRefactored checkout submission with unified action handlingUpdated checkout types with shipping and payment detailsMade address fields optional in type definitionsUpdated checkout provider to support new action structureExtended cart types with shipping and payment detailsAdded attributes for shipping rates, payments, and shipmentsIncluded billing and shipping addresses, payments, and shipments incart fetchAdded utility to fetch payment methodsAdded utility to fetch shipping ratesEnhanced cart normalization with shipping and payment detailsRefactored checkout submission to use unified action3 files
Updated package version to 0.2.1Updated `commerce-spree` dependency to version 0.2.1Updated `commerce-spree` dependency to version 0.2.1